<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/31 0031
  Time: 16:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>分销楼盘表信息管理</title>

    <style>
        th{text-align: center;}
    </style>
    <link rel="stylesheet" href="/static/commons/layui/css/layui.css">
</head>
<body>
<h2 align="center">分销楼盘表信息管理</h2><br>
<div style="text-align:left;width: 250px;float: right;">
<a style="color: #00F7DE" href="/distr-area/allArea">返回上级区域</a>
</div>
<div style="text-align: center">
<form action="" method="post" id="form">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">楼盘名称</label>
            <div class="layui-input-inline">
                <input type="text" name="distrBuildingName" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">交通</label>
            <div class="layui-input-inline">
                <input type="text" name="traffic"  class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">物业管理</label>
            <div class="layui-input-inline">
                <input type="text" name="property"  class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">质量指标</label>
            <div class="layui-input-inline">
                <input type="text" name="qualityIndex"  class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">交房时间</label>
            <div class="layui-input-inline">
                <input type="text" name="deliveryTime" class="layui-input" id="test1">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">代表客户</label>
            <div class="layui-input-inline">
                <input type="text" name="customer" class="layui-input">
            </div>
        </div>
    </div>
    <input type="hidden" name="distrAreaId" value="${area.distrAreaId}">
    <button class="layui-btn layui-btn-normal" id="findBuild">查询</button>
    <button class="layui-btn layui-btn-normal" id="addBuild">添加</button>
</form>
    <hr class="layui-bg-green">
    <table class="layui-table">
        <thead class="layui-table">
        <tr>
            <th>楼盘名称</th>
            <th>楼盘所属区域</th>
            <th>交通</th>
            <th>物业管理</th>
            <th>质量指标</th>
            <th>交房时间</th>
            <th>代表客户</th>
            <th colspan="3">操作</th>
        </tr>
        </thead>
        <tbody class="layui-table">
        <c:forEach items="${list}" var="list">
            <tr>
                <td><a href="/distr-house/toHouse?data=${list.distrBuildingId}">${list.distrBuildingName}</a></td>
                <td>${area.distrAreaName}</td>
                <td>${list.traffic}</td>
                <td>${list.property}</td>
                <td>${list.qualityIndex}</td>
                <td>${list.deliveryTime}</td>
                <td>${list.customer}</td>
                <td>修改</td>
                <td><a href="/distr-building/deleteBuild?data=${list.distrBuildingId}">删除</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
<script src="/static/commons/layui/layui.js"></script>
<script src="/static/js/distr_building/building_manage.js"></script>
</body>
</html>
